<%--品牌列表页--%>
<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="brandList.heading" />

<content tag="buttons">
	<probiz:iconBtn btnType="add" onclick="return fnDoAdd(this);" />
	<probiz:iconBtn btnType="delete" onclick="return fnDoMultiDelete(this);" />
</content>

<search:searchBox formAction="${ctxPath}/product/brand.html" enableMoreSearch="false">
	<div class="basic_search">
		<search:basicSearch attrPath="s.brandName" attrNameKey="brand.brandName" datatype="String"	operator="LIKE" classes="inputtxt" labelWidth="48px"/>
	</div>
</search:searchBox>

<form class="mainForm" name="brandListForm" method="post">
	<c:set var="editURLPath" value="/product/brand.html?doAction=edit&from=list" scope="page" />
	<div class="top clearfix">
		<ul class="tab">
			<li class="curr"><span><fmt:message key="menu.brandList"/></span></li>
		</ul>
		<%@include file="/common/pagingOnlyTop.jsp"%>
	</div>
	<div class="data">
		<c:set var="checkAll">
			<input type="checkbox" name="allbox" onclick="checkAll(this.form)" class="checkbox" />
		</c:set>
		<display:table name="${brandList}" cellspacing="0" cellpadding="0" uid="brand" class="list_table" export="false" requestURI="">
			<display:column class="checkbox_column" style="height:50px;" title="${checkAll}" media="html">
				<input type="checkbox" name="multiIds" value="${brand.brandId}" class="checkbox" title="${brand.brandName}" />
			</display:column>
			<display:column style="width: 10%;"   sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="brand.imageUrl" media="html">
				<c:if test="${not empty brand.imageUrl}">
					<img src="${mediaPath}${brand.imageUrl}"  onerror="$j(this).attr('originsrc',this.src);this.onerror='';this.src=__defaultImage_brand" originsrc="" width="75" height="55"/>
				</c:if>
			</display:column>
			<display:column style="width: 15%;"  sortable="true" url="${editURLPath}" paramId="brandId" paramProperty="brandId" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="brand.brandName">
				${brand.brandName}
			</display:column>
			<display:column style="width: 4%;" property="sortOrder" sortable="true" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="brand.sortOrder" />
			<display:column style="width: 20%" property="website" sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="brand.website" />
			<display:column  sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="brand.shortDescription" >
                <common:displayString value="${brand.shortDescription}" length="63"/>
            </display:column>
		</display:table>
		<%@include file="/common/paging.jsp"%>
	</div>
</form>
<script type="text/javascript">
$j(document).ready(function () {
	highlightTableRows("brand");
});

function abc(obj){
	fnDoAction(obj, "outputExcelReport");
}
</script>